import httpInstance from "@/utils/http";

// 轮播图
export function getBannerApi (params = {}) {
  // 默认为1 商品为2
  const { distributionSite = '1'} = params
  return httpInstance({
    url: '/home/banner',
    params: {
      distributionSite
    }
  })
}

// 新鲜好物
export function getNewApi () {
  return httpInstance({
    url: '/home/new'
  })
}

// 热门推荐
export function getHotApi () {
  return httpInstance({
    url: '/home/hot'
  })
}

// 产品列表
export function getGoodsApi () {
  return httpInstance({
    url: '/home/goods'
  })
}